package com.sophialex.health.record;

import java.util.MissingResourceException;
import java.util.ResourceBundle;

public class Messages {
	private static final String jianti_type = "com.sophialex.health.record.messages"; //$NON-NLS-1$

	private static final String fanti_type = "com.sophialex.health.record.messages_zh_HK"; //$NON-NLS-1$

	private static ResourceBundle RESOURCE_BUNDLE  = ResourceBundle.getBundle(jianti_type);
	static{
//		if("1".equals(SuperContext.language_type)){
			RESOURCE_BUNDLE = ResourceBundle.getBundle(jianti_type);
//		}else{
//			RESOURCE_BUNDLE = ResourceBundle.getBundle(fanti_type);
//		}
		
	}
	public static String getString(String key) {
		try {
			return RESOURCE_BUNDLE.getString(key);
		} catch (MissingResourceException e) {
			return '!' + key + '!';
		}
	}
}
